package jym.tan.tmdb.bean.wrapper;

import java.io.Serializable;
import java.util.List;

import jym.tan.tmdb.bean.Base;
import jym.tan.tmdb.bean.Trailer;

import com.google.gson.annotations.SerializedName;

/**
 * The Class MovieTrailerWrapper. The Wrapper class which holds the 
 * {@link List} of {@link Trailer} of Quicktime and Youtube videos and other information.
 * <p>
 * 	The properties are:
 * 	<ul>
 * 		<li>id</li>
 * 		<li>quicktime</li>
 * 		<li>youtube</li>
 * 	</ul>
 * </p>	 
 * @author Tanmoy 
 */
public class MovieTrailerWrapper extends Base implements Serializable {

	private static final long serialVersionUID = -4154674079326887040L;

	@SerializedName("quicktime")
	private List<Trailer> quicktime;
	
	@SerializedName("youtube")
	private List<Trailer> youtube;
	
	/**
	 * Default Constructor.
	 */
	public MovieTrailerWrapper() {
		
	}

	/**
	 * Gets the {@link List} of {@link Trailer} of quicktime videos.
	 *
	 * @return 
	 * 		The quicktime
	 */
	public List<Trailer> getQuicktime() {
		return quicktime;
	}

	/**
	 * Sets the quicktime.
	 *
	 * @param quicktime 
	 * 		The new quicktime
	 */
	public void setQuicktime(List<Trailer> quicktime) {
		this.quicktime = quicktime;
	}

	/**
	 * Gets the {@link List} of {@link Trailer} of youtube videos.
	 *
	 * @return 
	 * 		The youtube
	 */
	public List<Trailer> getYoutube() {
		return youtube;
	}

	/**
	 * Sets the youtube.
	 *
	 * @param youtube 
	 * 		The new youtube
	 */
	public void setYoutube(List<Trailer> youtube) {
		this.youtube = youtube;
	}
	
	/* (non-Javadoc)
	 * @see jym.tan.tmdb.bean.Base#toString()
	 */
	@Override
	public String toString() {		
		StringBuilder builder = new StringBuilder();
		builder.append("{").
			append("id:").append(id).
			append(",").
			append("quicktime:").append(quicktime).
			append(",").
			append("youtube:").append(youtube).
			append("}");
		return builder.toString();
	}
}
